﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NewsTypeList.aspx.cs" Inherits="Main_NewsTypeList" %>

<%@ Register src="../top.ascx" tagname="top" tagprefix="uc1" %>
<%@ Register src="../bottom.ascx" tagname="bottom" tagprefix="uc2" %>
<%@ Register src="Shop.ascx" tagname="Shop" tagprefix="uc3" %>
<%@ Register src="House.ascx" tagname="House" tagprefix="uc4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>分类信息</title>
    <script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
    <link href="../css/header/header.css" rel="stylesheet" type="text/css" />
    <link href="../css/footer/footer.css" rel="stylesheet" type="text/css" />
    <link href="../css/news/news.css" rel="stylesheet" type="text/css" /> 
</head>
<body>
    <form id="form1" runat="server">
    <uc1:top ID="top1" runat="server" />
    <div class="news_container">
        <div class="leftbox">
             <h1>最新楼盘<asp:HyperLink ID="hlm1" ImageUrl="../css/main/more.gif" NavigateUrl="House.aspx" CssClass="more" runat="server"></asp:HyperLink></h1>
                <div id="leftbox" class="box_text">
                     <uc4:House ID="House" runat="server"/>
                </div>
        </div>
        <div id="News_txt">
            <div class="news_w">
                <h3><asp:Label ID="labtitle" runat="server"></asp:Label></h3>
                    <table>
                    <tr>
                        <td>
                            类型：</td>
                        <td>
                            <asp:DropDownList ID="ddltype" runat="server" AppendDataBoundItems="True" 
                                Enabled="False" onselectedindexchanged="ddltype_SelectedIndexChanged">
                                <asp:ListItem Value="0">--请选择--</asp:ListItem>
                            </asp:DropDownList>
                            </td>
                        <td>
                            时间：</td>
                        <td>
                            <asp:TextBox ID="txtbegintime" runat="server" OnClick="WdatePicker()" 
                                Width="90px"></asp:TextBox>
                            </td>
                        <td>
                            —</td>
                        <td>
                            <asp:TextBox ID="txtendtime" runat="server" OnClick="WdatePicker()" 
                                Width="90px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="btnsearch" runat="server" CssClass="btngrey" Text="查找" 
                    onclick="btnsearch_Click" />    </td>
                    </tr>
                </table>    
                <asp:DataList ID="dlnewslist" runat="server" CellPadding="4" CssClass="newsdatalist" Width="500px">
                    <ItemTemplate>
                        <asp:Label ID="labtime" runat="server" Text='<%# Eval("Ntime") %>' style=" float:right;margin:0 10px"></asp:Label>
                        <span class="txt_hx">[<asp:Label ID="labtype" runat="server" Text='<%# Eval("Mname") %>'></asp:Label>]</span>
                        <asp:HyperLink ID="hlnews" runat="server" Target="_blank" style="text-decoration:none;font-weight:normal;" Text='<%# Eval("Nmaintitle") %>' ToolTip='<%# Eval("Ncontent") %>'></asp:HyperLink>
                    </ItemTemplate>
                    <ItemStyle CssClass="ItemStyle" />
                </asp:DataList>
                <div class="topbottom">
                    <asp:LinkButton ID="lbpre" runat="server" CssClass="page" CommandArgument="pre" OnCommand="IndexChanging">上页</asp:LinkButton><span></span>
                    <asp:LinkButton ID="lbnext" runat="server" CssClass="page" CommandArgument="next" OnCommand="IndexChanging">下页</asp:LinkButton>
                </div>
            </div>
        </div>
        <div class="rightbox">
             <h1>最新小店<asp:HyperLink ID="hlm3" ImageUrl="../css/main/more.gif" NavigateUrl="Shop.aspx" CssClass="more" runat="server"></asp:HyperLink></h1>
                <div id="rightbox" class="box_text">
                     <uc3:Shop ID="Shop" runat="server"/>
                </div>
        </div>
    </div>        
    <uc2:bottom ID="bottom1" runat="server" />
    </form>
</body>
</html>
